package com.sendi.common.service;

import java.util.List;

import com.sendi.common.dao.CommonDaoHibernate;
import com.sendi.common.util.Page;
import com.sendi.common.util.QueryRule;

public interface Service {
	public boolean exists(Object obj);
	public Object save(Object obj);
	public Object update(Object obj);
	public Object delete(Object obj);
	public Object get(Long id);
	public List findByHql(String hql,Object[] values);
	public List findByProperty(String propertyName,Object value);
	public Page getPageByHql(String hql,int startIndex,int pageSize,Object[] values);
	public Object getUnique(Long id);
	public Object getUnique(String propertyName,Object value);
	public Object getUnique(QueryRule queryRule);
	public CommonDaoHibernate getDao();
}
